<template lang="pug">
  kalix-dialog.user-add(title='添加' bizKey="examineeRoom" ref="kalixBizDialog"
  v-bind:formModel.sync="formModel" v-bind:targetURL="targetURL" )
    div.el-form(slot="dialogFormSlot")
      input(v-model="formModel.subjectCode" type="hidden")
      input(v-model="formModel.dateBegin" type="hidden")
      el-form-item(label="考生" prop="name" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.name" )
      el-form-item(label="准考证号" prop="examCardNumber" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.examCardNumber" )
      el-form-item(label="身份证号" prop="idCards" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.idCards" )
      el-form-item(label="考场" prop="examRoom" v-bind:label-width="labelWidth" )
        el-input(v-model="formModel.examRoom")
      el-form-item(label="考场坐号" prop="examRoomNo" v-bind:label-width="labelWidth" )
        el-input-number(v-model="formModel.examRoomNo" v-bind:min="1" v-bind:max="100")
</template>

<script>
  import FormModel from './examineeRoomModel'
  import {ExamineeAddURL} from '../config.toml'

  export default {
    name: 'ExamineeRoomAdd',
    data() {
      return {
        formModel: Object.assign({}, FormModel),
        labelWidth: '180px',
        targetURL: ExamineeAddURL
      }
    },
    methods: {
      // init(dialogOption) {
      //   console.log('dialogOption=================', dialogOption)
      //   this.formModel.subjectCode = dialogOption.subjectCode
      //   this.formModel.dateBegin = dialogOption.dateBegin
      // }
    }
  }
</script>

<style scoped>

</style>
